//
//  YZNetworkManager+Home.h
//  YZMicroStock
//
//  Created by wangminhong on 16/4/6.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZNetworkManager.h"

@interface YZNetworkManager (Home)

/**
 *  获取首页统计
 *
 *  @param success
 *  @param failure
 */
- (void)fetchHomeDataListWithSuccess:(void (^)(NSURLResponse *task,id responseObject))success failure: (void (^)(NSError *error))failure;


/**
 *  获取服务器时间
 *
 *  @param success
 *  @param failure
 */
- (void)fetchSeverTimeWithSuccess:(void (^)(NSURLResponse *, id))success failure:(void (^)(NSError *))failure;

/**
 *  检测版本更新
 *
 *  @param success
 *  @param failure 
 */
- (void)checkSoftwareUpdateSuccess:(void (^)(NSURLResponse *, id))success failure:(void (^)(NSError *))failure;

/**
 *  获取bannerList
 *
 *  @param success
 *  @param failure
 */
- (void)fetchHomeBannerListWithSuccess:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                               failure: (void (^)(NSError *error))failure;

/**
 *  获取策略排行和操盘达人
 *
 *  @param success
 *  @param failure
 */
- (void)fetchRankListWithSuccess:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                               failure: (void (^)(NSError *error))failure;


/**
 *  获取策略动态
 *
 *  @param success
 *  @param failure
 */
- (void)fetchHomeTrendListWithSuccess:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                         failure: (void (^)(NSError *error))failure;


/**
 *  获取策略榜单
 *
 *  @param success
 *  @param failure
 */
- (void)fetchHomeRankListWithSuccess:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                              failure: (void (^)(NSError *error))failure;

@end
